package resource

import (
	"aifuture.cloud/response/resource"
	"math/rand"
	"time"
)

func list() (error, []*resource.ResourceResponse) {
	var res resource.ResourceResponse
	rand.Seed(time.Now().UnixNano())
	res.Id = rand.Intn(99999)
	res.Title = "算力服务-班级套餐A（咨询试用）"
	res.Cover = "https://www.lanboai.cn/_nuxt/img/resource.d27c785.png"
	res.Item = []*resource.ResourcItem{
		&resource.ResourcItem{
			Id: rand.Intn(999),
			ServiceInfo: []*resource.ServInfo{
				&resource.ServInfo{
					CPU:      "Intel(R) Xeon(R) Silver 4214R * 2",
					GPU:      "GeForce RTX 3080Ti *  4  ",
					Storage:  "12G",
					Memory:   "384G",
					HardDisk: "1.8T",
				},
			},
			Expire: 30,
			Price:  88888,
			YPrice: 9999,
			ServiceDetail: resource.ServiceDetail{
				Title: "售价仅为商品体验价格，超值优惠套餐请购买前咨询工作人员详情：",
				Tearcherinfo: resource.Tearcherinfo{
					Id:     rand.Intn(99999),
					Name:   "深兰教育王老师",
					Tel:    "17336292096",
					Qrcode: "https://wechatapppro-1252524126.cdn.xiaoeknow.com/appryjcgu125387/image/b_u_chmo0t61l0cra9ajceag/ekrz5jljqsrnpg.jpg?imageMogr2/format/webp%7CimageMogr2/ignore-error/1",
				},
			},
		},
	}

	return nil, []*resource.ResourceResponse{
		&res,
		&res,
		&res,
	}
}
